/**
 * 解压rar文件的子进程
 * Copyright(C) 2018 liumurong
 */


const nodeunrar = require("@fknop/node-unrar");

process.on("message", (msg: { filepath: string, despath: string }) => {
    //let extraer = createExtractorFromFile(msg.filepath, msg.despath);
    //extraer.extractAll();
    nodeunrar.extract(msg.filepath, {
        dest: msg.despath
    }, function () {
        process.exit(0);
    });
})
setInterval(() => {
    console.log("...");
}, 100000);




